The Construction and Computation of Conditional Statements for SCMPDS
نویسنده
چکیده
We construct conditional statements like the usual high level program language by program blocks of SCMPDS. Roughly speaking, the article justifies such a fact that when the condition of a conditional statement is true (false), and the true (false) branch is shiftable, parahalting and does not contain any halting instruction, and the false branch is shiftable, then it is halting and its computation result equals that of the true (false) branch. The parahalting means some program halts for all states, this is strong condition. For this reason, we introduce the notions of ”is closed on” and ”is halting on”. The predicate ”A is closed on B” denotes program A is closed on state B, and ”A is halting on B” denotes program A is halting on state B. We obtain a similar theorem to the above fact by replacing parahalting by ”is closed on” and ”is halting on”.
منابع مشابه
The Construction and Computation of While-Loop Programs for SCMPDS
This article defines two while-loop statements on SCMPDS, i.e. “while<0” and “while>0”, which resemble the while-statements of the common high language such as C. We previously presented a number of tricks for computing while-loop statements on SCMFSA, e.g. step-while. However, after inspecting a few realistic examples, we found that they are neither very useful nor of generalization. To cover ...
متن کاملThe Construction and Computation of for-loop Programs for SCMPDS
This article defines two for-loop statements for SCMPDS. One is called for-up, which corresponds to ”for (i=x; i<0; i+=n) S” in C language. Another is called for-down, which corresponds to ”for (i=x; i>0; i-=n) S”. Here, we do not present their unconditional halting (called parahalting) property, because we have not found that there exists a useful for-loop statement with unconditional halting,...
متن کاملThe Construction and Computation of Conditional Statements for SCMPDS1
We construct conditional statements like the usual high level program language by program blocks of SCMPDS. Roughly speaking, the article justifies such a fact that when the condition of a conditional statement is true (false), and the true (false) branch is shiftable, parahalting and does not contain any halting instruction, and the false branch is shiftable, then it is halting and its computa...
متن کاملThe Construction and Computation of While-Loop Programs for SCMPDS1
This article defines two while-loop statements on SCMPDS, i.e. “while<0” and “while>0”, which resemble the while-statements of the common high language such as C. We previously presented a number of tricks for computing while-loop statements on SCMFSA, e.g. step-while. However, after inspecting a few realistic examples, we found that they are neither very useful nor of generalization. To cover ...
متن کاملThe Construction and Computation of for-loop Programs for SCMPDS1
This article defines two for-loop statements for SCMPDS. One is called for-up, which corresponds to “for (i=x; i<0; i+=n) S” in C language. Another is called fordown, which corresponds to “for (i=x; i>0; i-=n) S”. Here, we do not present their unconditional halting (called parahalting) property, because we have not found that there exists a useful for-loop statement with unconditional halting, ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2007